﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	MetaFormRule.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Rules;

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form action rule
	/// </summary>
	public class MetaFormRule : MetaFormCtrl
	{
		/// <summary>
		/// Action contidion
		/// </summary>
		public string Condition { get; set; }

		/// <summary>
		/// Action
		/// </summary>
		public string Action { get; set; }

		/// <summary>
		/// Underlying rule
		/// </summary>
		public IRule Rule { get; set; }

		/// <summary>
		/// Form action rule
		/// </summary>
		public MetaFormRule(string condition, string action)
			: base(null, null)
		{
			Condition = condition;
			Action = action;
		}
	}
}